﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyAttribute.Extend
{
    /// <summary>
    /// 状态的描述
    /// </summary>
    [AttributeUsage(AttributeTargets.Field)]
    public class RemarkAttribute : Attribute
    {
        private string _Description;

        public RemarkAttribute(string description)
        {
            _Description = description;
        }

        /// <summary>
        /// 获取到描述信息
        /// </summary>
        /// <returns></returns>
        public string GetDescription() => this._Description;
    }
}
